{extend name="base" /}

{block name="title"}备用金池{/block}

{block name="resource"}
<style type="text/css">
	.qb_box {
		margin-bottom: 10px;
	}
	.qb_box > p {
		float: none;
	}
</style>
{/block}

{block name="main"}
<div class="main">
	<div class="container">
		<div class="qd_box">
			<div class="table_modal">
				<div class="qb_box">
					<p>1.备用金起始为<strong style="color: red;">10000</strong></p> 
					<p>2.每完成一笔新手单增加：<strong style="color: red;">35</strong></p> 
				</div>

				<div class="tab_title"><p>备用金池记录<small>(当前累积备用金：{$totalPettyCash})</small></p></div>

				<div class="qd_table_box">
					<div class="table-responsive">
					  	<table class="table text-center table-bordered">
					    	<tr>
					    		<th>用户</th>
					    		<th>金额</th>
					    		<th>创建时间</th>
					    	</tr>
					    	{volist name='pettyCashLogs' id='pettyCashLog'}
							<tr>
					    		<td>{$pettyCashLog.username}</td>
					    		<td><strong style="color: red;"> + </strong> {$pettyCashLog.price}</td>
					    		<td>{$pettyCashLog.create_time}</td>
					    	</tr>
							{/volist}
					  	</table>
					</div>
					<nav>{$pettyCashLogs -> render()}</nav>
				</div>
			</div>
		</div>	
	</div>
</div>
{/block}